home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / rjs.lha / RJS / tests / makefile.src < prev    next >
Makefile  |  1991-06-14  |  455b  |  38 lines

  1. #
  2. #
  3. # Makefile 
  4. #
  5. CC=CC
  6. YFLAGS = -d
  7. .SUFFIXES: .o .c .y .l .s .C
  8. #
  9. PROG=qtest
  10. #
  11. # C++ rules
  12. #
  13. .C.o:
  14.     $(CC) $(CFLAGS) -c $*.C
  15.  
  16. .C.a:
  17.     $(CC) -c $(CFLAGS) $<
  18.     ar rv $@ $*.o
  19.     rm -f $*.o
  20.  
  21. #
  22. #
  23.  
  24. RJSROOT=/u/probe/u1/schemers/src/C++/RJS
  25. RJSDIR=$(RJSROOT)/RJS
  26. LDFLAGS = -L$(RJSDIR)/$(MACHINE) -lRJS
  27. CFLAGS  = -I$(RJSROOT) $(LDFLAGS)
  28.  
  29. #
  30. # start of programs
  31. #
  32.  
  33. $(MACHINE)/$(PROG) : $(PROG).o $(RLIB)
  34.     CC -o $(MACHINE)/$(PROG) $(PROG).o $(CFLAGS)
  35.  
  36. clean:
  37.     rm -f *.o 
  38.